package org.jfonia.musicxml.model;

import org.w3c.dom.Node;

/**
 * Time element indicating classical time signature denoted as a fraction.
 * 
 * @author Wijnand
 *
 */
public class Time extends Element
{
	private int beats;		// e.g. 6
	private int	beatType;	// e.g. 8

	public Time(Node node)
	{
		super(node);
	}
	
	public Time(Node node, int beats, int beatType)
	{
		super(node);
		this.beats = beats;
		this.beatType = beatType;
	}

	public static Time getDefault()
	{
		return new Time(null, 4,4);
	}
	
	public void setBeats(int beats)
	{
		this.beats = beats;
	}

	public int getBeats()
	{
		return beats;
	}

	public void setBeatType(int beatType)
	{
		this.beatType = beatType;
	}

	public int getBeatType()
	{
		return beatType;
	}
}
